package com.xieyingwangluo.yxpart.service.impl;

import com.xieyingwangluo.yxpart.entity.AdminModel;
import com.xieyingwangluo.yxpart.mapper.AdminMapper;
import com.xieyingwangluo.yxpart.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;

    @Override
    public int add(AdminModel adminModel) {
        return adminMapper.add(adminModel);
    }

    @Override
    public int del(String noid) {
        return adminMapper.del(noid);
    }

    @Override
    public int upd(AdminModel adminModel) {
        return adminMapper.upd(adminModel);
    }

    @Override
    public AdminModel selO(String noid) {
        return adminMapper.selO(noid);
    }

    @Override
    public List<AdminModel> selA(AdminModel adminModel) {
        return adminMapper.selA(adminModel);
    }

    @Override
    public AdminModel checklogin(String name, String pwd) {
        return adminMapper.checklogin(name, pwd);
    }

    @Override
    public int updPwd(String noid, String pwd) {
        return adminMapper.updPwd(noid, pwd);
    }

    @Override
    public List<AdminModel> selT(String tel) {
        return adminMapper.selT(tel);
    }

    @Override
    public AdminModel login(String tel, String pwd) {
        return adminMapper.login(tel, pwd);
    }
}
